<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<div class="data_list">
		<div class="data_list_title">
			&nbsp;&nbsp;&nbsp;&nbsp;
			<a href="" style="color: #333;">心情随笔</a>
		</div>
		<div class="essay_list">
			<ul>
			  <c:forEach var="essay" items="${essayList}">
			  	  <li style="margin-top: 10px">
				  	<div class="col-md-2">
				  		<div class="col-md-10 date">
				  			<p><fmt:formatDate value="${essay.createDate }" type="date" pattern="yyyy.MM.dd"/></p>
				  		</div>
				  		<div class="col-md-2 arrow">
				  			
				  		</div>
				  	</div>
				  	<div class="col-md-10 content">
				  		${essay.content }
				  		<span class="info">发表时间 · <fmt:formatDate value="${essay.createDate }" type="date" pattern="HH:mm:ss"/> -- 位置 · ${essay.location }</span>
				  	</div>
				  </li>
				  <hr style="border:none;border-top:1px dashed gray;" />
			  </c:forEach>
			</ul>
		</div>
</div>

<div>
	<nav style="text-align: center;">
	  <ul class="pagination pagination-sm">
	    ${pageCode }
	  </ul>
	</nav>
</div>